package com.refuel.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

import java.util.Date;

/**
 * @author zhanghao
 * @description 用户信息
 * @date 2024/4/12 08:50
 **/
@Schema(description = "用户信息")
public class User {

    /**
     * 用户主键id
     */
    @Schema(description = "主键id", example = "123456")
    private Long id;

    /**
     * 用户唯一id
     */
    @NotNull
    @Schema(description = "用户id", example = "123456")
    private String uid;

    /**
     * 昵称姓名
     */
    @NotNull
    @Schema(description = "昵称姓名", example = "帅气的张三")
    private String name;

    /**
     * 可用积分
     */
    @Schema(description = "可用积分", example = "200")
    private Integer integral;

    /**
     * 头像链接
     */
    @Schema(description = "头像链接", example = "http://xxx.com/xxx.jpg")
    private String headUrl;

    /**
     * 性别
     */
    @Schema(description = "性别", example = "男")
    private String gender;

    /**
     * 年龄
     */
    @Schema(description = "年龄", example = "20")
    private String age;

    /**
     * 位置
     */
    @Schema(description = "位置", example = "浙江省杭州市临平区xx小区")
    private String location;

    /**
     * 省
     */
    @Schema(description = "省", example = "浙江省")
    private String province;

    /**
     * 市
     */
    @Schema(description = "市", example = "杭州市")
    private String city;

    /**
     * 区
     */
    @Schema(description = "区", example = "临平区")
    private String area;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getHeadUrl() {
        return headUrl;
    }

    public void setHeadUrl(String headUrl) {
        this.headUrl = headUrl;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }
}
